package com.platform.service.impl;

import com.platform.dao.InviteDao;
import com.platform.entity.InviteEntity;
import com.platform.service.InviteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户邀请关联表Service实现类
 *  推广管理:邀请关系
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-21 17:57:34
 */
@Service("inviteService")
public class InviteServiceImpl implements InviteService {
    @Autowired
    private InviteDao inviteDao;

    @Override
    public InviteEntity queryObject(Long id) {
        return inviteDao.queryObject(id);
    }

    @Override
    public List<InviteEntity> queryList(Map<String, Object> map) {
        return inviteDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return inviteDao.queryTotal(map);
    }

    @Override
    public int save(InviteEntity tInvite) {
        return inviteDao.save(tInvite);
    }

    @Override
    public int update(InviteEntity tInvite) {
        return inviteDao.update(tInvite);
    }

    @Override
    public int delete(Long id) {
        return inviteDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return inviteDao.deleteBatch(ids);
    }
}
